export interface ISignaLightRunConfig {
  dongzuo?: number;
  dongzhi?: number;
  dongyou?: number;
  dongrenxin?: number;
  nanzuo?: number;
  nanzhi?: number;
  nanyou?: number;
  nanrenxin?: number;
  xizuo?: number;
  xizhi?: number;
  xiyou?: number;
  xirenxin?: number;
  beizuo?: number;
  beizhi?: number;
  beiyou?: number;
  beirenxin?: number;
  time: number;
}

export interface ISignaLightConfig {
  zuo: number;
  zhi: number;
  you: number;
  renxing: number;
  time?: number;
}

export interface ILightGroupRun {
  lightGroup: ISignaLightConfig[];
  time: number;
  phaseTime?: number;
}

/* export class ILightGroupColor {
  private changeLightColor(status: number): string {
    let color = "dimgray";
    if (status === 1) {
      color = "red";
    } else if (status === 2) {
      color = "green";
    }
    return color;
  }
  public get leftColor(): string {
    return this.leftColor;
  }
  public get centerColor(): string {
    return this._centerColor;
  }
  public get rightColor(): string {
    return this._rightColor;
  }
  public get renxingColor(): string {
    return this._renxingColor;
  }
  public set leftColor(val: number) {
    console.log('set',val)
    this._leftColor = this.changeLightColor(val);
    console.log('get',this._leftColor)
  }
  public set centerColor(val: number) {
    this._centerColor = this.changeLightColor(val);
  }
  public set rightColor(val: number) {
    this._rightColor = this.changeLightColor(val);
  }
  public set renxingColor(val: number) {
    this._renxingColor = this.changeLightColor(val);
  }
}

export class ILightGroup {
    
  public light: ILightGroupColor[] =[];
  public time: number = 0;
  public phaseTime: number = 0;
  constructor(){
    for(let i=0;i<4;i++){
        this.light.push(new ILightGroupColor())
    }
}
}
 */
